import requests
headers={
    'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36'
}
url='http://www.pxc.jx.cn/'
re=requests.get(url=url,headers=headers)
re.encoding='utf-8'
with open("D:\\萍乡学院.html","w",encoding="utf-8") as f:
    f.write(re.text)
f.close()
